package com.ccc.scala.base5_function

object Function9_Curry {
  def main(args: Array[String]): Unit = {
    // 函数柯里化

    def test(a: Int)(b: Int): Unit = {
      for (i <- 1 to a) {
        println(i)
      }
      for (j <- 1 to b) {
        println(j)
      }
    }

    val a = 10
    val b = 15
    test(a)(b)

  }
}
